<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
<h:head>
    <title>#{adminLogin.backSiteName}</title>
    <meta http-equiv="keywords" content="enter,your,keywords,here"/>
    <meta http-equiv="description"
          content="A short description of this page."/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" type="text/css"
          href="#{facesContext.externalContext.requestContextPath}/resources/bbs_back.css"/>
</h:head>
<h:body>
    <h:form>
        <div style="width: 100%;text-align:center;padding-top: 100px;">
            <p:outputPanel autoUpdate="true">
                <p:growl/>
            </p:outputPanel>
            <p:panel style="width:400px;text-align:left;margin:0px auto;" header="管理登录">
                <h:panelGrid columns="2">
                    <h:outputLabel for="urn" value="用户名："/>
                    <h:inputText id="urn" style="width:200px" value="#{adminLogin.user.urn}"/>
                    <h:outputLabel for="pwd" value="密码："/>
                    <h:inputSecret id="pwd" style="width:200px" value="#{adminLogin.user.pwd}"/>
                    <h:outputLabel for="auc" value="验证码："/>
                    <h:panelGroup>
                        <h:inputText id="auc" style="width:95px" value="#{adminLogin.authStr}"/>
                        <p:commandLink action="#{adminLogin.refresh}" update="auimg">
                            <h:graphicImage alt="看不清?点击刷新" id="auimg"
                                            style="border:black 0px solid;vertical-align:bottom;width:100px;height:22px;"
                                            url="/AuthImage?sTime=#{adminLogin.STime}"/>
                        </p:commandLink>
                    </h:panelGroup>
                    <p:commandButton action="#{adminLogin.login_action}" id="login" ajax="false"
                                     value="登录"/>
                </h:panelGrid>
            </p:panel>
        </div>
    </h:form>
</h:body>
</html>
